FROM cjpthree/centos7
RUN curl -L -o noarch.rpm https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm \
&& yum -y install noarch.rpm \
&& rm noarch.rpm \
&& yum -y install mysql-community-server \
&& yum clean all \
&& rm -rf /var/lib/yum/yumdb \
CMD [mysqld_safe]
